.class public Lcom/brixd/niceapp/model/AppModel;
.super Lcom/brixd/niceapp/model/BaseAppModel;
.source "AppModel.java"


# static fields
.field private static final serialVersionUID:J = 0x4d6b2bc311f9017L


# instance fields
.field private actionType:I

.field private articleType:I

.field private coverCommentId:I

.field private coverCommentModel:Lcom/brixd/niceapp/model/CommentModel;

.field private downNum:I

.field private isPortrait:Z

.field private mModuleType:Lcom/brixd/niceapp/constant/AppConstant$ModuleType;

.field private promoteTag:Ljava/lang/String;

.field private recommandedBackgroundColor:Ljava/lang/String;

.field private recommandedDate:Ljava/lang/String;

.field private recommendLevel:Ljava/lang/String;

.field private upNum:I

.field private videoShareUrl:Ljava/lang/String;

.field private videoUrl:Ljava/lang/String;

.field private webUrl:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .registers 2

    .prologue
    .line 33
    invoke-direct {p0}, Lcom/brixd/niceapp/model/BaseAppModel;-><init>()V

    .line 34
    const-string v0, ""

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/model/AppModel;->setTitle(Ljava/lang/String;)V

    .line 35
    const-string v0, ""

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/model/AppModel;->setSubTitle(Ljava/lang/String;)V

    .line 36
    const-string v0, ""

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/model/AppModel;->setDigest(Ljava/lang/String;)V

    .line 37
    return-void
.end method

.method public static parseAlbumApps(Lorg/json/JSONArray;)Ljava/util/List;
    .registers 12
    .param p0, "jsonArray"    # Lorg/json/JSONArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/json/JSONArray;",
            ")",
            "Ljava/util/List",
            "<",
            "Lcom/brixd/niceapp/model/AppModel;",
            ">;"
        }
    .end annotation

    .prologue
    .line 359
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 361
    .local v1, "appModels":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/AppModel;>;"
    const/4 v5, 0x0

    .local v5, "i":I
    :goto_6
    invoke-virtual {p0}, Lorg/json/JSONArray;->length()I

    move-result v10

    if-ge v5, v10, :cond_dc

    .line 362
    new-instance v0, Lcom/brixd/niceapp/model/AppModel;

    invoke-direct {v0}, Lcom/brixd/niceapp/model/AppModel;-><init>()V

    .line 363
    .local v0, "appModel":Lcom/brixd/niceapp/model/AppModel;
    invoke-virtual {p0, v5}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    .line 365
    .local v8, "jsonObject":Lorg/json/JSONObject;
    const-string v10, "title"

    invoke-virtual {v8, v10}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v0, v10}, Lcom/brixd/niceapp/model/AppModel;->setTitle(Ljava/lang/String;)V

    .line 366
    const-string v10, "digest"

    invoke-virtual {v8, v10}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v0, v10}, Lcom/brixd/niceapp/model/AppModel;->setDigest(Ljava/lang/String;)V

    .line 367
    const-string v10, "icon_image"

    invoke-virtual {v8, v10}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v0, v10}, Lcom/brixd/niceapp/model/AppModel;->setIconUrl(Ljava/lang/String;)V

    .line 368
    const-string v10, "up_times"

    invoke-virtual {v8, v10}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v10

    invoke-virtual {v0, v10}, Lcom/brixd/niceapp/model/AppModel;->setUpNum(I)V

    .line 369
    const-string v10, "share_times"

    invoke-virtual {v8, v10}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v10

    invoke-virtual {v0, v10}, Lcom/brixd/niceapp/model/AppModel;->setShowTimes(I)V

    .line 370
    const-string v10, "article_id"

    invoke-virtual {v8, v10}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v10

    invoke-virtual {v0, v10}, Lcom/brixd/niceapp/model/AppModel;->setId(I)V

    .line 371
    const-string v10, "article_type"

    invoke-virtual {v8, v10}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v10

    invoke-virtual {v0, v10}, Lcom/brixd/niceapp/model/AppModel;->setArticleType(I)V

    .line 372
    const-string v10, "size"

    invoke-virtual {v8, v10}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v0, v10}, Lcom/brixd/niceapp/model/AppModel;->setAppSize(Ljava/lang/String;)V

    .line 373
    const-string v10, "package_name"

    invoke-virtual {v8, v10}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v0, v10}, Lcom/brixd/niceapp/model/AppModel;->setPackageName(Ljava/lang/String;)V

    .line 375
    const-string v10, "links"

    invoke-virtual {v8, v10}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    .line 376
    .local v2, "downloadJsonArray":Lorg/json/JSONArray;
    new-instance v4, Ljava/util/HashMap;

    invoke-direct {v4}, Ljava/util/HashMap;-><init>()V

    .line 377
    .local v4, "downloadUrls":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    const/4 v6, 0x0

    .local v6, "j":I
    :goto_72
    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v10

    if-ge v6, v10, :cond_d2

    .line 378
    invoke-virtual {v2, v6}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v7

    .line 379
    .local v7, "jo":Lorg/json/JSONObject;
    const-string v10, "type"

    invoke-virtual {v7, v10}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 380
    .local v9, "marketName":Ljava/lang/String;
    const-string v10, "direct"

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_9e

    .line 381
    const-string v10, "url"

    invoke-virtual {v7, v10}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 382
    .local v3, "downloadUrl":Ljava/lang/String;
    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v10

    if-nez v10, :cond_9b

    .line 383
    const-string v10, "Direct"

    invoke-virtual {v4, v10, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 377
    .end local v3    # "downloadUrl":Ljava/lang/String;
    :cond_9b
    :goto_9b
    add-int/lit8 v6, v6, 0x1

    goto :goto_72

    .line 385
    :cond_9e
    const-string v10, "wandoujia"

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_b8

    .line 386
    const-string v10, "url"

    invoke-virtual {v7, v10}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 387
    .restart local v3    # "downloadUrl":Ljava/lang/String;
    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v10

    if-nez v10, :cond_9b

    .line 388
    const-string v10, "Wandoujia"

    invoke-virtual {v4, v10, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_9b

    .line 390
    .end local v3    # "downloadUrl":Ljava/lang/String;
    :cond_b8
    const-string v10, "googleplay"

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_9b

    .line 391
    const-string v10, "url"

    invoke-virtual {v7, v10}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 392
    .restart local v3    # "downloadUrl":Ljava/lang/String;
    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v10

    if-nez v10, :cond_9b

    .line 393
    const-string v10, "GooglePlay"

    invoke-virtual {v4, v10, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_9b

    .line 397
    .end local v3    # "downloadUrl":Ljava/lang/String;
    .end local v7    # "jo":Lorg/json/JSONObject;
    .end local v9    # "marketName":Ljava/lang/String;
    :cond_d2
    invoke-virtual {v0, v4}, Lcom/brixd/niceapp/model/AppModel;->setDownloadUrls(Ljava/util/HashMap;)V

    .line 399
    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 361
    add-int/lit8 v5, v5, 0x1

    goto/16 :goto_6

    .line 402
    .end local v0    # "appModel":Lcom/brixd/niceapp/model/AppModel;
    .end local v2    # "downloadJsonArray":Lorg/json/JSONArray;
    .end local v4    # "downloadUrls":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    .end local v6    # "j":I
    .end local v8    # "jsonObject":Lorg/json/JSONObject;
    :cond_dc
    return-object v1
.end method

.method public static parseAppModel(Lorg/json/JSONObject;Lcom/brixd/niceapp/constant/AppConstant$ModuleType;)Lcom/brixd/niceapp/model/AppModel;
    .registers 15
    .param p0, "jsonApp"    # Lorg/json/JSONObject;
    .param p1, "type"    # Lcom/brixd/niceapp/constant/AppConstant$ModuleType;

    .prologue
    .line 187
    new-instance v0, Lcom/brixd/niceapp/model/AppModel;

    invoke-direct {v0}, Lcom/brixd/niceapp/model/AppModel;-><init>()V

    .line 188
    .local v0, "appModel":Lcom/brixd/niceapp/model/AppModel;
    invoke-virtual {v0, p1}, Lcom/brixd/niceapp/model/AppModel;->setModuleType(Lcom/brixd/niceapp/constant/AppConstant$ModuleType;)V

    .line 194
    const-string v11, "content"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setContent(Ljava/lang/String;)V

    .line 196
    const-string v11, "cover_comment_id"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v4

    .line 197
    .local v4, "coverCommentId":I
    if-lez v4, :cond_59

    .line 198
    new-instance v3, Lcom/brixd/niceapp/model/CommentModel;

    invoke-direct {v3}, Lcom/brixd/niceapp/model/CommentModel;-><init>()V

    .line 199
    .local v3, "commentModel":Lcom/brixd/niceapp/model/CommentModel;
    invoke-virtual {v3, v4}, Lcom/brixd/niceapp/model/CommentModel;->setCommentId(I)V

    .line 200
    const-string v11, "cover_comment_content"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v3, v11}, Lcom/brixd/niceapp/model/CommentModel;->setContent(Ljava/lang/String;)V

    .line 201
    const-string v11, "cover_comment_created_at"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v3, v11}, Lcom/brixd/niceapp/model/CommentModel;->setCreatedAt(Ljava/lang/String;)V

    .line 203
    new-instance v1, Lcom/brixd/niceapp/model/CommonUserModel;

    invoke-direct {v1}, Lcom/brixd/niceapp/model/CommonUserModel;-><init>()V

    .line 204
    .local v1, "author":Lcom/brixd/niceapp/model/CommonUserModel;
    const-string v11, "cover_comment_author_name"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v1, v11}, Lcom/brixd/niceapp/model/CommonUserModel;->setUserName(Ljava/lang/String;)V

    .line 205
    const-string v11, "cover_comment_author_career"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v1, v11}, Lcom/brixd/niceapp/model/CommonUserModel;->setUserIntro(Ljava/lang/String;)V

    .line 206
    const-string v11, "cover_comment_author_avatar_url"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v1, v11}, Lcom/brixd/niceapp/model/CommonUserModel;->setAvatarUrl(Ljava/lang/String;)V

    .line 207
    invoke-virtual {v3, v1}, Lcom/brixd/niceapp/model/CommentModel;->setAuthorUser(Lcom/brixd/niceapp/model/CommonUserModel;)V

    .line 209
    invoke-virtual {v0, v3}, Lcom/brixd/niceapp/model/AppModel;->setCoverCommentModel(Lcom/brixd/niceapp/model/CommentModel;)V

    .line 212
    .end local v1    # "author":Lcom/brixd/niceapp/model/CommonUserModel;
    .end local v3    # "commentModel":Lcom/brixd/niceapp/model/CommentModel;
    :cond_59
    const-string v11, "cover_image"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setCoverImageUrl(Ljava/lang/String;)V

    .line 213
    const-string v11, "create_time"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setCreatedTime(Ljava/lang/String;)V

    .line 214
    const-string v11, "digest"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setDigest(Ljava/lang/String;)V

    .line 215
    const-string v11, "icon_image"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setIconUrl(Ljava/lang/String;)V

    .line 216
    const-string v11, "id"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setId(I)V

    .line 217
    const-string v11, "recommanded_background_color"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setRecommandedBackgroundColor(Ljava/lang/String;)V

    .line 218
    const-string v11, "recommanded_date"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setRecommandedDate(Ljava/lang/String;)V

    .line 219
    const-string v11, "sub_title"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setSubTitle(Ljava/lang/String;)V

    .line 220
    const-string v11, "author_username"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setAuthorName(Ljava/lang/String;)V

    .line 221
    const-string v11, "author_career"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setAuthorCareer(Ljava/lang/String;)V

    .line 222
    const-string v11, "title"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setTitle(Ljava/lang/String;)V

    .line 223
    const-string v11, "update_time"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setUpdatedTime(Ljava/lang/String;)V

    .line 224
    const-string v11, "size"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setAppSize(Ljava/lang/String;)V

    .line 225
    const-string v11, "package_name"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setPackageName(Ljava/lang/String;)V

    .line 226
    const-string v11, "min_sdk_version"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v11

    if-nez v11, :cond_194

    const/4 v11, -0x1

    :goto_e0
    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setMinSdkVer(I)V

    .line 227
    const-string v11, "recommend_level"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setRecommendLevel(Ljava/lang/String;)V

    .line 230
    const-string v11, "video_url"

    const-string v12, ""

    invoke-virtual {p0, v11, v12}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setVideoUrl(Ljava/lang/String;)V

    .line 231
    const-string v11, "video_is_portrait"

    const/4 v12, 0x0

    invoke-virtual {p0, v11, v12}, Lorg/json/JSONObject;->optBoolean(Ljava/lang/String;Z)Z

    move-result v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setIsPortrait(Z)V

    .line 232
    const-string v11, "video_share_url"

    const-string v12, ""

    invoke-virtual {p0, v11, v12}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setVideoShareUil(Ljava/lang/String;)V

    .line 234
    const-string v11, "info"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    .line 235
    .local v2, "bravoInfoJson":Lorg/json/JSONObject;
    const-string v11, "up"

    invoke-virtual {v2, v11}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setUpNum(I)V

    .line 236
    const-string v11, "down"

    invoke-virtual {v2, v11}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setDownNum(I)V

    .line 238
    const-string v11, "up_users"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v11

    invoke-static {v2, v11}, Lcom/brixd/niceapp/model/EstimateModel;->parseEstimateModel(Lorg/json/JSONObject;Lorg/json/JSONArray;)Lcom/brixd/niceapp/model/EstimateModel;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setEstimateModel(Lcom/brixd/niceapp/model/EstimateModel;)V

    .line 239
    const-string v11, "comments"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v11

    invoke-static {v11}, Lcom/brixd/niceapp/model/CommentModel;->parseCommentModels(Lorg/json/JSONObject;)Ljava/util/ArrayList;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setCommentModels(Ljava/util/ArrayList;)V

    .line 240
    const-string v11, "same_apps"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v11

    invoke-static {v11}, Lcom/brixd/niceapp/model/ShortAppModel;->parseModels(Lorg/json/JSONArray;)Ljava/util/List;

    move-result-object v11

    invoke-virtual {v0, v11}, Lcom/brixd/niceapp/model/AppModel;->setSameApps(Ljava/util/List;)V

    .line 242
    new-instance v6, Ljava/util/HashMap;

    invoke-direct {v6}, Ljava/util/HashMap;-><init>()V

    .line 243
    .local v6, "downloadUrls":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    const-string v11, "download_url"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 244
    .local v5, "downloadUrl":Ljava/lang/String;
    invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v11

    if-nez v11, :cond_161

    .line 245
    const-string v11, "GooglePlay"

    invoke-virtual {v6, v11, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 247
    :cond_161
    const-string v11, "other_download_url"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v9

    .line 248
    .local v9, "jsonArray":Lorg/json/JSONArray;
    const/4 v7, 0x0

    .local v7, "i":I
    :goto_168
    invoke-virtual {v9}, Lorg/json/JSONArray;->length()I

    move-result v11

    if-ge v7, v11, :cond_1b6

    .line 249
    invoke-virtual {v9, v7}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    .line 250
    .local v8, "jo":Lorg/json/JSONObject;
    const-string v11, "app_market_name"

    invoke-virtual {v8, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    .line 251
    .local v10, "marketName":Ljava/lang/String;
    const-string v11, "direct"

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v11

    if-eqz v11, :cond_19c

    .line 252
    const-string v11, "download_url"

    invoke-virtual {v8, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 253
    invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v11

    if-nez v11, :cond_191

    .line 254
    const-string v11, "Direct"

    invoke-virtual {v6, v11, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 248
    :cond_191
    :goto_191
    add-int/lit8 v7, v7, 0x1

    goto :goto_168

    .line 226
    .end local v2    # "bravoInfoJson":Lorg/json/JSONObject;
    .end local v5    # "downloadUrl":Ljava/lang/String;
    .end local v6    # "downloadUrls":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    .end local v7    # "i":I
    .end local v8    # "jo":Lorg/json/JSONObject;
    .end local v9    # "jsonArray":Lorg/json/JSONArray;
    .end local v10    # "marketName":Ljava/lang/String;
    :cond_194
    const-string v11, "min_sdk_version"

    invoke-virtual {p0, v11}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v11

    goto/16 :goto_e0

    .line 256
    .restart local v2    # "bravoInfoJson":Lorg/json/JSONObject;
    .restart local v5    # "downloadUrl":Ljava/lang/String;
    .restart local v6    # "downloadUrls":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    .restart local v7    # "i":I
    .restart local v8    # "jo":Lorg/json/JSONObject;
    .restart local v9    # "jsonArray":Lorg/json/JSONArray;
    .restart local v10    # "marketName":Ljava/lang/String;
    :cond_19c
    const-string v11, "wandoujia"

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v11

    if-eqz v11, :cond_191

    .line 257
    const-string v11, "download_url"

    invoke-virtual {v8, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 258
    invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v11

    if-nez v11, :cond_191

    .line 259
    const-string v11, "Wandoujia"

    invoke-virtual {v6, v11, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_191

    .line 263
    .end local v8    # "jo":Lorg/json/JSONObject;
    .end local v10    # "marketName":Ljava/lang/String;
    :cond_1b6
    invoke-virtual {v0, v6}, Lcom/brixd/niceapp/model/AppModel;->setDownloadUrls(Ljava/util/HashMap;)V

    .line 265
    return-object v0
.end method

.method public static parseAppModels(Lorg/json/JSONObject;Lcom/brixd/niceapp/constant/AppConstant$ModuleType;)Ljava/util/ArrayList;
    .registers 8
    .param p0, "jo"    # Lorg/json/JSONObject;
    .param p1, "type"    # Lcom/brixd/niceapp/constant/AppConstant$ModuleType;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/json/JSONObject;",
            "Lcom/brixd/niceapp/constant/AppConstant$ModuleType;",
            ")",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/brixd/niceapp/model/AppModel;",
            ">;"
        }
    .end annotation

    .prologue
    .line 164
    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    .line 166
    .local v4, "list":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/model/AppModel;>;"
    if-nez p0, :cond_8

    .line 183
    :cond_7
    return-object v4

    .line 169
    :cond_8
    const/4 v3, 0x0

    .line 170
    .local v3, "jsonApps":Lorg/json/JSONArray;
    const-string v5, "apps"

    invoke-virtual {p0, v5}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_2e

    .line 171
    const-string v5, "apps"

    invoke-virtual {p0, v5}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    .line 175
    :cond_17
    :goto_17
    if-eqz v3, :cond_7

    .line 176
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_1a
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v5

    if-ge v1, v5, :cond_7

    .line 177
    invoke-virtual {v3, v1}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    .line 178
    .local v2, "jsonApp":Lorg/json/JSONObject;
    invoke-static {v2, p1}, Lcom/brixd/niceapp/model/AppModel;->parseAppModel(Lorg/json/JSONObject;Lcom/brixd/niceapp/constant/AppConstant$ModuleType;)Lcom/brixd/niceapp/model/AppModel;

    move-result-object v0

    .line 179
    .local v0, "appModel":Lcom/brixd/niceapp/model/AppModel;
    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 176
    add-int/lit8 v1, v1, 0x1

    goto :goto_1a

    .line 172
    .end local v0    # "appModel":Lcom/brixd/niceapp/model/AppModel;
    .end local v1    # "i":I
    .end local v2    # "jsonApp":Lorg/json/JSONObject;
    :cond_2e
    const-string v5, "articles"

    invoke-virtual {p0, v5}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_17

    .line 173
    const-string v5, "articles"

    invoke-virtual {p0, v5}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    goto :goto_17
.end method

.method public static parsePortalApps(Lorg/json/JSONArray;)Ljava/util/List;
    .registers 7
    .param p0, "jsonArray"    # Lorg/json/JSONArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/json/JSONArray;",
            ")",
            "Ljava/util/List",
            "<",
            "Lcom/brixd/niceapp/model/AppModel;",
            ">;"
        }
    .end annotation

    .prologue
    .line 328
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 330
    .local v1, "appModels":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/AppModel;>;"
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_6
    invoke-virtual {p0}, Lorg/json/JSONArray;->length()I

    move-result v5

    if-ge v2, v5, :cond_99

    .line 331
    new-instance v0, Lcom/brixd/niceapp/model/AppModel;

    invoke-direct {v0}, Lcom/brixd/niceapp/model/AppModel;-><init>()V

    .line 332
    .local v0, "appModel":Lcom/brixd/niceapp/model/AppModel;
    invoke-virtual {p0, v2}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v3

    .line 334
    .local v3, "jsonObject":Lorg/json/JSONObject;
    const-string v5, "title"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v5}, Lcom/brixd/niceapp/model/AppModel;->setTitle(Ljava/lang/String;)V

    .line 335
    const-string v5, "sub_title"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v5}, Lcom/brixd/niceapp/model/AppModel;->setSubTitle(Ljava/lang/String;)V

    .line 336
    const-string v5, "icon_image"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v5}, Lcom/brixd/niceapp/model/AppModel;->setIconUrl(Ljava/lang/String;)V

    .line 337
    const-string v5, "article_type"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v5

    invoke-virtual {v0, v5}, Lcom/brixd/niceapp/model/AppModel;->setArticleType(I)V

    .line 338
    const-string v5, "action_type"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v5

    invoke-virtual {v0, v5}, Lcom/brixd/niceapp/model/AppModel;->setActionType(I)V

    .line 339
    const-string v5, "up_times"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v5

    invoke-virtual {v0, v5}, Lcom/brixd/niceapp/model/AppModel;->setUpNum(I)V

    .line 340
    const-string v5, "recommend_level"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v5}, Lcom/brixd/niceapp/model/AppModel;->setRecommendLevel(Ljava/lang/String;)V

    .line 341
    const-string v5, "url"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v5}, Lcom/brixd/niceapp/model/AppModel;->setWebUrl(Ljava/lang/String;)V

    .line 342
    const-string v5, "id"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v5

    invoke-virtual {v0, v5}, Lcom/brixd/niceapp/model/AppModel;->setId(I)V

    .line 343
    const-string v5, "promote_tag"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v5}, Lcom/brixd/niceapp/model/AppModel;->setPromoteTag(Ljava/lang/String;)V

    .line 345
    const-string v5, "author"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v4

    .line 346
    .local v4, "jsonUser":Lorg/json/JSONObject;
    if-eqz v4, :cond_92

    .line 347
    const-string v5, "id"

    invoke-virtual {v4, v5}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v5

    invoke-virtual {v0, v5}, Lcom/brixd/niceapp/model/AppModel;->setAuthorId(I)V

    .line 348
    const-string v5, "userName"

    invoke-virtual {v4, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v5}, Lcom/brixd/niceapp/model/AppModel;->setAuthorName(Ljava/lang/String;)V

    .line 349
    const-string v5, "avatar_url"

    invoke-virtual {v4, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v5}, Lcom/brixd/niceapp/model/AppModel;->setAuthorAvatarUrl(Ljava/lang/String;)V

    .line 352
    :cond_92
    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 330
    add-int/lit8 v2, v2, 0x1

    goto/16 :goto_6

    .line 355
    .end local v0    # "appModel":Lcom/brixd/niceapp/model/AppModel;
    .end local v3    # "jsonObject":Lorg/json/JSONObject;
    .end local v4    # "jsonUser":Lorg/json/JSONObject;
    :cond_99
    return-object v1
.end method

.method private static parseSearchModel(Lorg/json/JSONObject;Lcom/brixd/niceapp/constant/AppConstant$ModuleType;)Lcom/brixd/niceapp/model/AppModel;
    .registers 4
    .param p0, "jsonApp"    # Lorg/json/JSONObject;
    .param p1, "moduleType"    # Lcom/brixd/niceapp/constant/AppConstant$ModuleType;

    .prologue
    .line 316
    new-instance v0, Lcom/brixd/niceapp/model/AppModel;

    invoke-direct {v0}, Lcom/brixd/niceapp/model/AppModel;-><init>()V

    .line 317
    .local v0, "appModel":Lcom/brixd/niceapp/model/AppModel;
    const-string v1, "package_name"

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/model/AppModel;->setPackageName(Ljava/lang/String;)V

    .line 318
    const-string v1, "icon_url"

    invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/model/AppModel;->setIconUrl(Ljava/lang/String;)V

    .line 319
    const-string v1, "id"

    invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/model/AppModel;->setId(I)V

    .line 320
    const-string v1, "sub_title"

    invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/model/AppModel;->setSubTitle(Ljava/lang/String;)V

    .line 321
    const-string v1, "title"

    invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/model/AppModel;->setTitle(Ljava/lang/String;)V

    .line 322
    invoke-virtual {v0, p1}, Lcom/brixd/niceapp/model/AppModel;->setModuleType(Lcom/brixd/niceapp/constant/AppConstant$ModuleType;)V

    .line 324
    return-object v0
.end method

.method public static parseSearchModels(Lorg/json/JSONObject;)Ljava/util/LinkedHashMap;
    .registers 9
    .param p0, "jsonApps"    # Lorg/json/JSONObject;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lorg/json/JSONObject;",
            ")",
            "Ljava/util/LinkedHashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/brixd/niceapp/model/AppModel;",
            ">;>;"
        }
    .end annotation

    .prologue
    .line 292
    new-instance v5, Ljava/util/LinkedHashMap;

    invoke-direct {v5}, Ljava/util/LinkedHashMap;-><init>()V

    .line 294
    .local v5, "map":Ljava/util/LinkedHashMap;, "Ljava/util/LinkedHashMap<Ljava/lang/String;Ljava/util/ArrayList<Lcom/brixd/niceapp/model/AppModel;>;>;"
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 295
    .local v0, "articleModels":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/model/AppModel;>;"
    const-string v6, "articles"

    invoke-virtual {p0, v6}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    .line 296
    .local v3, "jsonArticles":Lorg/json/JSONArray;
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_11
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v6

    if-ge v2, v6, :cond_27

    .line 297
    invoke-virtual {v3, v2}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v6

    sget-object v7, Lcom/brixd/niceapp/constant/AppConstant$ModuleType;->NICE_DAILY:Lcom/brixd/niceapp/constant/AppConstant$ModuleType;

    invoke-static {v6, v7}, Lcom/brixd/niceapp/model/AppModel;->parseSearchModel(Lorg/json/JSONObject;Lcom/brixd/niceapp/constant/AppConstant$ModuleType;)Lcom/brixd/niceapp/model/AppModel;

    move-result-object v6

    invoke-virtual {v0, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 296
    add-int/lit8 v2, v2, 0x1

    goto :goto_11

    .line 299
    :cond_27
    invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v6

    if-nez v6, :cond_32

    .line 300
    const-string v6, "zuimei.daily"

    invoke-virtual {v5, v6, v0}, Ljava/util/LinkedHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 303
    :cond_32
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 304
    .local v1, "communityModels":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/model/AppModel;>;"
    const-string v6, "apps"

    invoke-virtual {p0, v6}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v4

    .line 305
    .local v4, "jsonCommunityApps":Lorg/json/JSONArray;
    const/4 v2, 0x0

    :goto_3e
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v6

    if-ge v2, v6, :cond_54

    .line 306
    invoke-virtual {v4, v2}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v6

    sget-object v7, Lcom/brixd/niceapp/constant/AppConstant$ModuleType;->COMMUNITY:Lcom/brixd/niceapp/constant/AppConstant$ModuleType;

    invoke-static {v6, v7}, Lcom/brixd/niceapp/model/AppModel;->parseSearchModel(Lorg/json/JSONObject;Lcom/brixd/niceapp/constant/AppConstant$ModuleType;)Lcom/brixd/niceapp/model/AppModel;

    move-result-object v6

    invoke-virtual {v1, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 305
    add-int/lit8 v2, v2, 0x1

    goto :goto_3e

    .line 308
    :cond_54
    invoke-virtual {v1}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v6

    if-nez v6, :cond_5f

    .line 309
    const-string v6, "zuimei.community"

    invoke-virtual {v5, v6, v1}, Ljava/util/LinkedHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 312
    :cond_5f
    return-object v5
.end method

.method private setVideoShareUil(Ljava/lang/String;)V
    .registers 2
    .param p1, "videoShareUil"    # Ljava/lang/String;

    .prologue
    .line 160
    iput-object p1, p0, Lcom/brixd/niceapp/model/AppModel;->videoShareUrl:Ljava/lang/String;

    .line 161
    return-void
.end method


# virtual methods
.method public getActionType()I
    .registers 2

    .prologue
    .line 116
    iget v0, p0, Lcom/brixd/niceapp/model/AppModel;->actionType:I

    return v0
.end method

.method public getArticleType()I
    .registers 2

    .prologue
    .line 108
    iget v0, p0, Lcom/brixd/niceapp/model/AppModel;->articleType:I

    return v0
.end method

.method public getCoverCommentId()I
    .registers 2

    .prologue
    .line 48
    iget v0, p0, Lcom/brixd/niceapp/model/AppModel;->coverCommentId:I

    return v0
.end method

.method public getCoverCommentModel()Lcom/brixd/niceapp/model/CommentModel;
    .registers 2

    .prologue
    .line 84
    iget-object v0, p0, Lcom/brixd/niceapp/model/AppModel;->coverCommentModel:Lcom/brixd/niceapp/model/CommentModel;

    return-object v0
.end method

.method public getDownNum()I
    .registers 2

    .prologue
    .line 64
    iget v0, p0, Lcom/brixd/niceapp/model/AppModel;->downNum:I

    return v0
.end method

.method public getModuleType()Lcom/brixd/niceapp/constant/AppConstant$ModuleType;
    .registers 2

    .prologue
    .line 40
    iget-object v0, p0, Lcom/brixd/niceapp/model/AppModel;->mModuleType:Lcom/brixd/niceapp/constant/AppConstant$ModuleType;

    return-object v0
.end method

.method public getPromoteTag()Ljava/lang/String;
    .registers 2

    .prologue
    .line 132
    iget-object v0, p0, Lcom/brixd/niceapp/model/AppModel;->promoteTag:Ljava/lang/String;

    return-object v0
.end method

.method public getRecommandedBackgroundColor()Ljava/lang/String;
    .registers 2

    .prologue
    .line 92
    iget-object v0, p0, Lcom/brixd/niceapp/model/AppModel;->recommandedBackgroundColor:Ljava/lang/String;

    return-object v0
.end method

.method public getRecommandedDate()Ljava/lang/String;
    .registers 2

    .prologue
    .line 100
    iget-object v0, p0, Lcom/brixd/niceapp/model/AppModel;->recommandedDate:Ljava/lang/String;

    return-object v0
.end method

.method public getRecommendLevel()Ljava/lang/String;
    .registers 2

    .prologue
    .line 72
    iget-object v0, p0, Lcom/brixd/niceapp/model/AppModel;->recommendLevel:Ljava/lang/String;

    return-object v0
.end method

.method public getUpNum()I
    .registers 2

    .prologue
    .line 56
    iget v0, p0, Lcom/brixd/niceapp/model/AppModel;->upNum:I

    return v0
.end method

.method public getVideoShareUrl()Ljava/lang/String;
    .registers 2

    .prologue
    .line 156
    iget-object v0, p0, Lcom/brixd/niceapp/model/AppModel;->videoShareUrl:Ljava/lang/String;

    return-object v0
.end method

.method public getVideoUrl()Ljava/lang/String;
    .registers 2

    .prologue
    .line 152
    iget-object v0, p0, Lcom/brixd/niceapp/model/AppModel;->videoUrl:Ljava/lang/String;

    return-object v0
.end method

.method public getWebUrl()Ljava/lang/String;
    .registers 2

    .prologue
    .line 124
    iget-object v0, p0, Lcom/brixd/niceapp/model/AppModel;->webUrl:Ljava/lang/String;

    return-object v0
.end method

.method public isPortrait()Z
    .registers 2

    .prologue
    .line 144
    iget-boolean v0, p0, Lcom/brixd/niceapp/model/AppModel;->isPortrait:Z

    return v0
.end method

.method public parseDetailModels()Ljava/util/ArrayList;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/brixd/niceapp/model/DetailModel;",
            ">;"
        }
    .end annotation

    .prologue
    .line 272
    sget-object v2, Lcom/brixd/niceapp/model/AppModel$1;->$SwitchMap$com$brixd$niceapp$constant$AppConstant$ModuleType:[I

    iget-object v3, p0, Lcom/brixd/niceapp/model/AppModel;->mModuleType:Lcom/brixd/niceapp/constant/AppConstant$ModuleType;

    invoke-virtual {v3}, Lcom/brixd/niceapp/constant/AppConstant$ModuleType;->ordinal()I

    move-result v3

    aget v2, v2, v3

    packed-switch v2, :pswitch_data_32

    .line 284
    invoke-virtual {p0}, Lcom/brixd/niceapp/model/AppModel;->getContent()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/brixd/niceapp/model/DetailModel;->parseDetailModels(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    .line 288
    .local v0, "detailModels":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/model/DetailModel;>;"
    :cond_15
    :goto_15
    return-object v0

    .line 275
    .end local v0    # "detailModels":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/model/DetailModel;>;"
    :pswitch_16
    invoke-virtual {p0}, Lcom/brixd/niceapp/model/AppModel;->getContent()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/brixd/niceapp/model/DetailModel;->parseDetailModels(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    .line 276
    .restart local v0    # "detailModels":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/model/DetailModel;>;"
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lez v2, :cond_15

    .line 277
    new-instance v1, Lcom/brixd/niceapp/model/DetailModel;

    invoke-direct {v1}, Lcom/brixd/niceapp/model/DetailModel;-><init>()V

    .line 278
    .local v1, "model":Lcom/brixd/niceapp/model/DetailModel;
    sget-object v2, Lcom/brixd/niceapp/model/DetailModel$DetailType;->TYPE_RECOMMEND:Lcom/brixd/niceapp/model/DetailModel$DetailType;

    invoke-virtual {v1, v2}, Lcom/brixd/niceapp/model/DetailModel;->setType(Lcom/brixd/niceapp/model/DetailModel$DetailType;)V

    .line 279
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_15

    .line 272
    :pswitch_data_32
    .packed-switch 0x1
        :pswitch_16
        :pswitch_16
    .end packed-switch
.end method

.method public setActionType(I)V
    .registers 2
    .param p1, "actionType"    # I

    .prologue
    .line 120
    iput p1, p0, Lcom/brixd/niceapp/model/AppModel;->actionType:I

    .line 121
    return-void
.end method

.method public setArticleType(I)V
    .registers 2
    .param p1, "articleType"    # I

    .prologue
    .line 112
    iput p1, p0, Lcom/brixd/niceapp/model/AppModel;->articleType:I

    .line 113
    return-void
.end method

.method public setCoverCommentId(I)V
    .registers 2
    .param p1, "coverCommentId"    # I

    .prologue
    .line 52
    iput p1, p0, Lcom/brixd/niceapp/model/AppModel;->coverCommentId:I

    .line 53
    return-void
.end method

.method public setCoverCommentModel(Lcom/brixd/niceapp/model/CommentModel;)V
    .registers 2
    .param p1, "coverCommentModel"    # Lcom/brixd/niceapp/model/CommentModel;

    .prologue
    .line 88
    iput-object p1, p0, Lcom/brixd/niceapp/model/AppModel;->coverCommentModel:Lcom/brixd/niceapp/model/CommentModel;

    .line 89
    return-void
.end method

.method public setDownNum(I)V
    .registers 2
    .param p1, "downNum"    # I

    .prologue
    .line 68
    iput p1, p0, Lcom/brixd/niceapp/model/AppModel;->downNum:I

    .line 69
    return-void
.end method

.method public setIsPortrait(Z)V
    .registers 2
    .param p1, "isPortrait"    # Z

    .prologue
    .line 140
    iput-boolean p1, p0, Lcom/brixd/niceapp/model/AppModel;->isPortrait:Z

    .line 141
    return-void
.end method

.method public setModuleType(Lcom/brixd/niceapp/constant/AppConstant$ModuleType;)V
    .registers 2
    .param p1, "type"    # Lcom/brixd/niceapp/constant/AppConstant$ModuleType;

    .prologue
    .line 44
    iput-object p1, p0, Lcom/brixd/niceapp/model/AppModel;->mModuleType:Lcom/brixd/niceapp/constant/AppConstant$ModuleType;

    .line 45
    return-void
.end method

.method public setPromoteTag(Ljava/lang/String;)V
    .registers 2
    .param p1, "promoteTag"    # Ljava/lang/String;

    .prologue
    .line 136
    iput-object p1, p0, Lcom/brixd/niceapp/model/AppModel;->promoteTag:Ljava/lang/String;

    .line 137
    return-void
.end method

.method public setRecommandedBackgroundColor(Ljava/lang/String;)V
    .registers 2
    .param p1, "recommandedBackgroundColor"    # Ljava/lang/String;

    .prologue
    .line 96
    iput-object p1, p0, Lcom/brixd/niceapp/model/AppModel;->recommandedBackgroundColor:Ljava/lang/String;

    .line 97
    return-void
.end method

.method public setRecommandedDate(Ljava/lang/String;)V
    .registers 2
    .param p1, "recommandedDate"    # Ljava/lang/String;

    .prologue
    .line 104
    iput-object p1, p0, Lcom/brixd/niceapp/model/AppModel;->recommandedDate:Ljava/lang/String;

    .line 105
    return-void
.end method

.method public setRecommendLevel(Ljava/lang/String;)V
    .registers 2
    .param p1, "recommendLevel"    # Ljava/lang/String;

    .prologue
    .line 76
    iput-object p1, p0, Lcom/brixd/niceapp/model/AppModel;->recommendLevel:Ljava/lang/String;

    .line 77
    return-void
.end method

.method public setUpNum(I)V
    .registers 2
    .param p1, "upNum"    # I

    .prologue
    .line 60
    iput p1, p0, Lcom/brixd/niceapp/model/AppModel;->upNum:I

    .line 61
    return-void
.end method

.method public setVideoUrl(Ljava/lang/String;)V
    .registers 2
    .param p1, "videoUrl"    # Ljava/lang/String;

    .prologue
    .line 148
    iput-object p1, p0, Lcom/brixd/niceapp/model/AppModel;->videoUrl:Ljava/lang/String;

    .line 149
    return-void
.end method

.method public setWebUrl(Ljava/lang/String;)V
    .registers 2
    .param p1, "webUrl"    # Ljava/lang/String;

    .prologue
    .line 128
    iput-object p1, p0, Lcom/brixd/niceapp/model/AppModel;->webUrl:Ljava/lang/String;

    .line 129
    return-void
.end method
